home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Internet / FeedDemon / FeedDemonInstall.exe / {app} / Data / ExportPosts.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2008-11-18  |  2.1 KB  |  56 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet version="1.0"    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  4.  
  5. <xsl:output method="html"
  6.     doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
  7.     doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  8.  
  9. <xsl:template match="rss/channel">
  10.     <html>
  11.     <head>
  12.         <title>$LANG_CONST(S_ExportPostsTitle)$</title>
  13.         <style type="text/css">
  14.             body { 
  15.                 background-color: white; 
  16.                 color: black; 
  17.                 font-size: $FONT-SIZE-NEWSPAPER$;
  18.                 font-family: "$FONT-NAME-NEWSPAPER$", "Segoe UI", "Trebuchet MS", Tahoma, Verdana, sans-serif;
  19.                 margin: 24px 30px;
  20.             }
  21.     
  22.             h1, h2, h3, h4, h5, h6 { font-weight: bold; }
  23.             h1 { font-size: 135%; }
  24.             h2 { font-size: 115%; }
  25.             h3 { font-size: 105% }
  26.             h4, h5, h6 { font-size: 100%; }
  27.             kbd, code, pre { font-size: 100%; }
  28.             
  29.             #newspapertitle { font-size: x-large; margin-bottom: 24px; font-weight: bold; }
  30.             .newsitem { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px dotted $COLOR-GROUP-HEADER-BORDER$; }
  31.             .newsitemtitle { font-size: larger; font-weight: bold; margin-bottom: 12px; }
  32.             .newsitemdateline { color: gray; font-style: italic; margin-bottom: 10px; }
  33.             div.newsitemcontent { overflow: hidden; }
  34.             .sep { margin-left: 4px; margin-right: 4px; }    
  35.         </style>
  36.     </head>
  37.     <body>
  38.         <h1 id="newspapertitle"><xsl:value-of select="title" disable-output-escaping="yes"/></h1>
  39.     
  40.         <xsl:for-each select="item">
  41.             <div class="newsitem">
  42.                <div class="newsitemtitle"><a href="{link}" title="{link}"><xsl:value-of select="title" disable-output-escaping="yes"/></a></div>
  43.                 <div class="newsitemdateline">
  44.                     <xsl:value-of select="pubDate"/>
  45.                     <xsl:if test="author"><span class="sep">|</span> <xsl:value-of select="author" /></xsl:if>
  46.                     <xsl:if test="source"><span class="sep">|</span><a href="{source/@url}"><xsl:value-of select="source" /></a></xsl:if>
  47.                 </div>
  48.                 <xsl:if test="description"><div class="newsitemcontent"><xsl:value-of select="description" disable-output-escaping="yes"/></div></xsl:if>
  49.             </div>
  50.         </xsl:for-each>
  51.         
  52.     </body>
  53.     </html>    
  54. </xsl:template>
  55.  
  56. </xsl:stylesheet>